public class DateTest {

    private int year;
    private int month;
    public int day;

    public DateTest() {
        year = 2024;
        month = 12;
        day = 7;
        //this(2222,3333,4444);
        System.out.println("Date()....");

    }

    public DateTest(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
        System.out.println("Date(int ,int,int )....");
    }

    public void printDate() {
        System.out.println(this.year + " 年" +
                this.month + " 月" + this.day + "日");
    }

    public int getYear(){
        return year;
    }

    public void setyear(int year)
    {
        this.year=year;
    }

    public int getMonth(){
        return month;
    }

    public void setMonth(int month){
        this.month=month;
    }


    public void setYear(int year) {
        this.year = year;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }
}
